package com.qq2008.game.mojie.service.impl;

import com.qq2008.game.mojie.jdo.Room;
import com.qq2008.game.mojie.mapper.RoomMapper;
import com.qq2008.game.mojie.service.RoomService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class RoomServiceImpl implements RoomService {

    @Resource
    RoomMapper mapper;

    @Override
    public Room get(int id) {
        return mapper.get(id);
    }

    @Override
    public List<Room> list(Map<String, Object> param) {
        return mapper.list(param);
    }

    @Override
    public int insert(Room room) {
        return mapper.insert(room);
    }

    @Override
    public int update(Room room) {
        return mapper.update(room);
    }

    @Override
    public int updateByUserId(Room room) {
        return mapper.updateByUserId(room);
    }

    @Override
    public int update(Map<String, Object> param, Map<String, Object> data) {
        return mapper.update(param, data);
    }

    @Override
    public int delete(int id) {
        return mapper.delete(id);
    }

    @Override
    public int delete(Map<String, Object> param) {
        return mapper.delete(param);
    }

    @Override
    public int count(Map<String, Object> param) {
        return mapper.count(param);
    }
}
